<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="{{CDN}}/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="{{CDN}}/easyui/themes/icon.css">
		<script type="text/javascript" src="{{CDN}}/easyui/jquery.min.js"></script>
		<script type="text/javascript" src="{{CDN}}/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="{{CDN}}/easyui/locale/easyui-lang-zh_CN.js"></script>
		<script>
		$(function(){
			/*表格初始化*/
			$("#grid").datagrid({
				singleSelect:true,
				fit:true,
				//fitColumns:true,
				collapsible:true, 
				striped:true,
				rownumbers:true, 
			    columns:[[    
			    	{field:'CK',checkbox:true},
			        {field:'company_name',title:'企业名称',width:300,align:'left'},    
					{field:'lx',title:'类型',width:200,align:'right'},
					{field:'dl',title:'大类',width:200,align:'right'}, 
					{field:'xl',title:'小类',width:200,align:'right'},     
					{field:'zy',title:'专业',width:200,align:'right'}, 
			        {field:'qual_level_name',title:'证书等级',width:100,align:'right'},
			        {field:'cert_num',title:'证书号',width:200,align:'right'},
			        {field:'issued_by',title:'发证机关',width:200,align:'right'},
			        {field:'issued_date',title:'发证日期',width:100,align:'right'},
			        {field:'expiry_date',title:'证书有效期',width:200,align:'right'},
			        {field:'filing',title:'filing',width:50,align:'right'},
			        {field:'is_del',title:'是否已删除',width:100,align:'right'}
			    ]],
			    pagination:true,
			    pageSize:20,
			    pageList:[10,20,30,50,100,200,500]
			});
			
			//下拉框加载数据,
			$('#search_cert_dict_id').combobox({    
			    url:'/common/dict/getComboboxCompanyCertDict',    
			    valueField:'code',
			    width:700,
			    textField:'name',
			    filter: function(q, row){
					var opts = $(this).combobox('options');
					return row[opts.textField].indexOf(q) >= 0;
				}
			});
			function query(){
				$("#grid").datagrid({
					url:'/standardLib/companyCert/getCompanyCertList',
					method:"POST",
					queryParams: parent.getFormJson($("#search_form"))
				});
			}
			//查询按钮
			$("#search_btn").click(query);
			//query();
		});
		</script>
	</head>
	<body class="easyui-layout">
		<!-- 查询条件表单 -->
		<div region="north" border="false"   style="width:100%;height:80px;margin-top: 20px;" >
			<form id ="search_form" method="post" class="easyui-form">
				<table width="100%">
					<tr>
						<td align="right" width="5%">企业名称:</td>
						<td width="15%"  align="left" >
							<input class="easyui-textbox"  name="company_name" style="width:400px"  />
						</td>
						<td align="right" width="8%">资质项名称:</td>
						<td width="30%"  align="left" >
							<input class="easyui-textbox" id = "search_cert_dict_id"  name="cert_dict_id" style="width:800px"  />
						</td>
						<td width="10%" ></td>
					</tr>
				</table>

			</form>
			<a href="#" id="search_btn" class="easyui-linkbutton"	 data-options="iconCls:'icon-search'"  >查询</a>
			<a href="#" id='show_column_from_btn' class="easyui-linkbutton" data-options="iconCls:'icon-edit'">查看数据来源</a>
		</div>
		<!-- 主表格 -->
		<div region="center" border="false">
			<table id="grid" ></table>
		</div>

	</body>
</html>
